-- GENERATED SPELL FOR [Keleth] --


function spell0_17901(pUnit, Event) --@Mark of War,n/a--
pUnit:FullCastSpellOnTarget(31807,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17901', 562, 1)
end

function spell1_17901(pUnit, Event) --@Mark of War,n/a--
pUnit:FullCastSpellOnTarget(31812,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17901', 670, 1)
end

function spell2_17901(pUnit, Event) --@Mark of War,n/a--
pUnit:FullCastSpellOnTarget(31813,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17901', 586, 1)
end

function spell3_17901(pUnit, Event) --@Mark of War,n/a--
pUnit:FullCastSpellOnTarget(31814,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17901', 637, 1)
end

function Sorts_17901(pUnit, Event)
local choix_sorts_17901 = math.random(0, 3)
if choix_sorts_17901 == 0 then
pUnit:RegisterEvent('spell0_17901', 1, 1)
end
if choix_sorts_17901 == 1 then
pUnit:RegisterEvent('spell1_17901', 1, 1)
end
if choix_sorts_17901 == 2 then
pUnit:RegisterEvent('spell2_17901', 1, 1)
end
if choix_sorts_17901 == 3 then
pUnit:RegisterEvent('spell3_17901', 1, 1)
end
end

function mob17901_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17901', math.random(1500, 3000), 1)
end

function mob17901_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17901_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17901_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17901, 1, 'mob17901_Action')
RegisterUnitEvent(17901, 2, 'mob17901_Leave')
RegisterUnitEvent(17901, 3, 'mob17901_Kill')
RegisterUnitEvent(17901, 4, 'mob17901_Die')
